﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace NewCodeAPI.Models;

public partial class Order
{
    /// <summary>
    /// 订单号
    /// </summary>
    [Key]
    public string OrderNo { get; set; } = null!;

    /// <summary>
    /// 订单名称
    /// </summary>
    public string? OrderName { get; set; }

    /// <summary>
    /// 订单状态（0-未支付 1-待支付 2-已支付 3-支付已取消 4- 支付失败 5-已退款）
    /// </summary>
    public string? OrderStatus { get; set; }

    /// <summary>
    /// 课程id
    /// </summary>
    public int? CourseId { get; set; }

    /// <summary>
    /// 报名Id
    /// </summary>
    public int? EnrollId { get; set; }

    /// <summary>
    /// 订单金额
    /// </summary>
    public string? OrderFee { get; set; }

    /// <summary>
    /// 订单创建时间
    /// </summary>
    public string? CreateTime { get; set; }

    /// <summary>
    /// 支付时间
    /// </summary>
    public string? PaymentTime { get; set; }

    /// <summary>
    /// 支付人
    /// </summary>
    public int? UserId { get; set; }
}
